﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using BemEstarEmprego.BLL.Models;

namespace BemEstarEmprego.Web.Controllers
{
	public class MonoController : Controller
	{
		//
		// GET: /Mono/

		public ActionResult Index()
		{

			MonoModel model = new MonoModel();

			//model.operatingSystem = Convert.ToString(objMos["Caption"]);
			//model.operatingSystemVersion = Environment.OSVersion.Platform.ToString();
			//model.VersionString = Convert.ToString(objMos["Version"]);
			//model.serverName = Environment.MachineName;

			model.operatingSystem = Environment.OSVersion.VersionString.ToString().ToUpper().Contains("WIN") == true ? "Windows" : "Linux";
			model.operatingSystemVersion = Environment.OSVersion.Platform.ToString();
			model.VersionString = Environment.OSVersion.Version.ToString();
			model.serverName = Environment.MachineName;

			//model.VersionString = Environment.OSVersion.VersionString;
			//model.serverName = Environment.MachineName;
			//model.operatingSystemVersion = Environment.OSVersion.Version.ToString();
			//model.requestedPage = Request.Url.AbsolutePath;
			//model.requestIP = Request.UserHostAddress;
			//model.requestUA = Request.UserAgent;

			return View("mono", model);
		}

	}
}
